Skip to content

tests: transport & client coverage#21

Merged
corigne merged 17 commits intomainfrom
feature/transport-tests-coverage
Apr 6, 2026
Merged

tests: transport & client coverage#21
corigne merged 17 commits intomainfrom
feature/transport-tests-coverage

Conversation

@corigne
Copy link
Copy Markdown
Owner

@corigne corigne commented Apr 6, 2026

Adds unit tests and updates README coverage badge. Coverage: 92.54%. When merged, main will reflect the updated badge. Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

corigne and others added 17 commits April 6, 2026 13:02
Use existing transport_connect_spec.lua for connect coverage

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ed-by: Copilot <223556219+Copilot@users.noreply.github.com>
…uthored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…hored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ing (unit)\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
… succeeds\n\nFixes failing expectations that observed 'cannot write startup script' instead of the intended port-file branches.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…over start_and_connect jobstart<=0 path and M._on_connect connection-info handling.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…lot <223556219+Copilot@users.noreply.github.com>
…-by: Copilot <223556219+Copilot@users.noreply.github.com>
…thored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…fer ids\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…dow ids

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@corigne corigne merged commit 42aac63 into main Apr 6, 2026
@corigne corigne deleted the feature/transport-tests-coverage branch April 6, 2026 23:41
corigne added a commit that referenced this pull request Apr 7, 2026
* tests: remove duplicate transport connect test

Use existing transport_connect_spec.lua for connect coverage

* tests: add suppressed :debug test for silent_rex

* tests: cover transport.connect read/connect error paths (unit)

* tests: cover client.connect on_message and on_disconnect

* tests: cover start_and_connect timer/port-file polling (unit)

* tests: ensure client.disconnect stops implementation job (unit)

* tests: verify client.describe debug sanitize logging (unit)

* tests: client.start_and_connect timeout and malformed port-file handling (unit)

* tests: provide writer stub in start_and_connect tests so script write succeeds\n\nFixes failing expectations that observed 'cannot write startup script' instead of the intended port-file branches.

* tests: add jobstart-failure and _on_connect behaviour unit tests\n\nCover start_and_connect jobstart<=0 path and M._on_connect connection-info handling.

* tests: cover client._on_connect contribs path

* tests: cover client.eval_interactive prompt + rex flow

* tests: cover client.describe UI (floating window + trimming)

* tests: fix describe UI test by providing vim.bo proxy for numeric buffer ids

* tests: fix describe UI test by providing vim.wo proxy for numeric window ids

* chore: commit README and luacov.report.out (coverage badge update)

* ci(badge): update coverage badge

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant